'''
@Project ：fastApiProject 
@File    ：entities.py
@IDE     ：PyCharm 
@Author  ：xzy
@Date    ：2024/11/21 15:18 
@explain: 
'''
from sqlalchemy import Column, String, Integer, Float, DateTime
from config.mysql_config import Base, engine

class PowerPlant(Base):
    '''发电量'''
    __tablename__ = 'power_plant'

    id = Column(Integer, primary_key=True, autoincrement=True)
    power_plant_date = Column(String(128))
    month_power_generation = Column(Float)
    unit = Column(String(128))

if __name__ == '__main__':
    Base.metadata.create_all(engine)